package com.naiterui.ehp.bp.support.bean.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.naiterui.ehp.bp.support.bean.ser.Fen2YuanFieldDeserialize;
import com.naiterui.ehp.bp.support.bean.ser.Fen2YuanFieldSerializer;

/**
 * 将分转换成元
 *
 * @author 王泽浩
 * @date 2019-02-19 14:12
 * @since 1.0.0
 */
@SuppressWarnings("unused")
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD})
@JacksonAnnotationsInside
@JsonDeserialize(using = Fen2YuanFieldDeserialize.class)
@JsonSerialize(using = Fen2YuanFieldSerializer.class)
public @interface Fen2Yuan {

    String pattern() default "###,##0.00";

}
